package com.open.capacity.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.capacity.common.model.InterResume;
import com.open.capacity.common.model.SysResume;
import com.open.capacity.user.dto.ResumeDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface InterResumeDao   extends BaseMapper<InterResume> {

    @Insert("insert into inter_resume(resume_id,company_id,activity_id) values (#{resumeId},#{companyId},#{activityId})")
    int save(InterResume interResume);

    @Delete("delete from inter_resume where id=#{id}")
    int delete(Long id);

    int count(Map<String, Object> params);

    List<InterResume> findList(Map<String,Object> params);


    List<ResumeDto> findResumesByAdresser(Map<String,Object> params);

    List<ResumeDto> findResumesByRecipitien(Map<String,Object> params);

}
